package pl.com.like.sequoia.model.bio;

import java.text.MessageFormat;
import java.util.Date;

import pl.com.like.sequoia.model.Pojo;

public class BioObjectAlign extends Pojo<Long> {

	private static final long serialVersionUID = 566272593085735575L;

	private BioObjectHandler bioObjectA;
	private BioObjectHandler bioObjectB;
	private String path;
	private String name;
	private Date created;
	private Boolean success;
	private String compareDescription;
	private String label;
	private String bioAAlign;
	private String bioBAlign;
	private Float score;
	private Integer cluster;
	private Integer gaps;
	private Integer percId;

	public String getBioAAlign() {
		return bioAAlign;
	}

	public String getBioBAlign() {
		return bioBAlign;
	}

	public BioObjectHandler getBioObjectA() {
		return bioObjectA;
	}

	public BioObjectHandler getBioObjectB() {
		return bioObjectB;
	}

	public Integer getCluster() {
		return cluster;
	}

	public String getCompareDescription() {
		return compareDescription;
	}

	public Date getCreated() {
		return created;
	}

	public Integer getGaps() {
		return gaps;
	}

	public String getLabel() {
		String parentName = "";
		String childName = "";
		if (bioObjectA != null) {
			parentName = bioObjectA.getName();
		}
		if (bioObjectB != null) {
			childName = bioObjectB.getName();
		}
		label = MessageFormat.format("{0} vs. {1}", parentName, childName);
		return label;
	}

	public String getName() {
		return name;
	}

	public String getPath() {
		return path;
	}

	public Integer getPercId() {
		return percId;
	}

	public Float getScore() {
		return score;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setBioAAlign(String bioAAlign) {
		this.bioAAlign = bioAAlign;
	}

	public void setBioBAlign(String bioBAlign) {
		this.bioBAlign = bioBAlign;
	}

	public void setBioObjectA(BioObjectHandler bioObjectA) {
		this.bioObjectA = bioObjectA;
	}

	public void setBioObjectB(BioObjectHandler bioObjectB) {
		this.bioObjectB = bioObjectB;
	}

	public void setCluster(Integer cluster) {
		this.cluster = cluster;
	}

	public void setClusters(int cluster) {
		this.cluster = cluster;
	}

	public void setCompareDescription(String compareDescription) {
		this.compareDescription = compareDescription;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public void setGaps(Integer _gaps) {
		this.gaps = _gaps;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setPercId(Integer _percId) {
		this.percId = _percId;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

}
